'use strict';

/**
 * @ngdoc function
 * @name mytodoApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the mytodoApp
 */
angular.module('myTimeLine') 
  .controller('LookUpCtrl',['$rootScope', '$scope', 'Main',function ($scope,$http,Main) {
    $scope.tit="题目";

    $scope.signIn=function(){
          var formData={
				email:$scope.username,
				password:$scope.password
		  }
		  console.log(Main);
		  Main.signin(formData,function(res){
		  	console.log(res);
		  },function(res){
		  	console.log(res);
		  })
    };

  }
  ]);
